package org.minuframework.utils;

@Deprecated
public class MathUtils {

    /**
     * 多一进一
     * 
     * @param total 总记录数
     * @param size 每页记录数
     * @return 总页数
     */
    public static int remaind(int total, int size) {
        int param = 0;
        if (total <= 0) {
            return param;
        }

        param = total / size;
        int remainder = total % size;
        if (remainder > 0) {
            param += 1;
        }

        return param;
    }

}
